Optimal. Leaf size=229 \[ -\frac {g \sin (e+f x) \sqrt {g \sec (e+f x)} (a \cos (e+f x)+b)}{f (a-b) (c \cos (e+f x)+c) \sqrt {a+b \sec (e+f x)}}+\frac {g \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} F\left (\frac {1}{2} (e+f x)|\frac {2 a}{a+b}\right )}{c f \sqrt {a+b \sec (e+f x)}}+\frac {g \sqrt {g \sec (e+f x)} (a \cos (e+f x)+b) E\left (\frac {1}{2} (e+f x)|\frac {2 a}{a+b}\right )}{c f (a-b) \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \sqrt {a+b \sec (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.44, antiderivative size = 229, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.180, Rules used = {3975, 2768, 2752, 2663, 2661, 2655, 2653} \[ -\frac {g \sin (e+f x) \sqrt {g \sec (e+f x)} (a \cos (e+f x)+b)}{f (a-b) (c \cos (e+f x)+c) \sqrt {a+b \sec (e+f x)}}+\frac {g \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} F\left (\frac {1}{2} (e+f x)|\frac {2 a}{a+b}\right )}{c f \sqrt {a+b \sec (e+f x)}}+\frac {g \sqrt {g \sec (e+f x)} (a \cos (e+f x)+b) E\left (\frac {1}{2} (e+f x)|\frac {2 a}{a+b}\right )}{c f (a-b) \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \sqrt {a+b \sec (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 2655
Rule 2661
Rule 2663
Rule 2752
Rule 2768
Rule 3975
Rubi steps
\begin {align*} \int \frac {(g \sec (e+f x))^{3/2}}{\sqrt {a+b \sec (e+f x)} (c+c \sec (e+f x))} \, dx &=\frac {\left (g \sqrt {b+a \cos (e+f x)} \sqrt {g \sec (e+f x)}\right ) \int \frac {1}{\sqrt {b+a \cos (e+f x)} (c+c \cos (e+f x))} \, dx}{\sqrt {a+b \sec (e+f x)}}\\ &=-\frac {g (b+a \cos (e+f x)) \sqrt {g \sec (e+f x)} \sin (e+f x)}{(a-b) f (c+c \cos (e+f x)) \sqrt {a+b \sec (e+f x)}}-\frac {\left (a g \sqrt {b+a \cos (e+f x)} \sqrt {g \sec (e+f x)}\right ) \int \frac {-\frac {c}{2}-\frac {1}{2} c \cos (e+f x)}{\sqrt {b+a \cos (e+f x)}} \, dx}{(a-b) c^2 \sqrt {a+b \sec (e+f x)}}\\ &=-\frac {g (b+a \cos (e+f x)) \sqrt {g \sec (e+f x)} \sin (e+f x)}{(a-b) f (c+c \cos (e+f x)) \sqrt {a+b \sec (e+f x)}}+\frac {\left (g \sqrt {b+a \cos (e+f x)} \sqrt {g \sec (e+f x)}\right ) \int \frac {1}{\sqrt {b+a \cos (e+f x)}} \, dx}{2 c \sqrt {a+b \sec (e+f x)}}+\frac {\left (g \sqrt {b+a \cos (e+f x)} \sqrt {g \sec (e+f x)}\right ) \int \sqrt {b+a \cos (e+f x)} \, dx}{2 (a-b) c \sqrt {a+b \sec (e+f x)}}\\ &=-\frac {g (b+a \cos (e+f x)) \sqrt {g \sec (e+f x)} \sin (e+f x)}{(a-b) f (c+c \cos (e+f x)) \sqrt {a+b \sec (e+f x)}}+\frac {\left (g (b+a \cos (e+f x)) \sqrt {g \sec (e+f x)}\right ) \int \sqrt {\frac {b}{a+b}+\frac {a \cos (e+f x)}{a+b}} \, dx}{2 (a-b) c \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \sqrt {a+b \sec (e+f x)}}+\frac {\left (g \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \sqrt {g \sec (e+f x)}\right ) \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \cos (e+f x)}{a+b}}} \, dx}{2 c \sqrt {a+b \sec (e+f x)}}\\ &=\frac {g (b+a \cos (e+f x)) E\left (\frac {1}{2} (e+f x)|\frac {2 a}{a+b}\right ) \sqrt {g \sec (e+f x)}}{(a-b) c f \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \sqrt {a+b \sec (e+f x)}}+\frac {g \sqrt {\frac {b+a \cos (e+f x)}{a+b}} F\left (\frac {1}{2} (e+f x)|\frac {2 a}{a+b}\right ) \sqrt {g \sec (e+f x)}}{c f \sqrt {a+b \sec (e+f x)}}-\frac {g (b+a \cos (e+f x)) \sqrt {g \sec (e+f x)} \sin (e+f x)}{(a-b) f (c+c \cos (e+f x)) \sqrt {a+b \sec (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 8.46, size = 1019, normalized size = 4.45 \[ \frac {(b+a \cos (e+f x)) (g \sec (e+f x))^{3/2} \left (\frac {2 \csc (e)}{(b-a) f}+\frac {2 \sec \left (\frac {e}{2}\right ) \sec \left (\frac {e}{2}+\frac {f x}{2}\right ) \sin \left (\frac {f x}{2}\right )}{(b-a) f}\right ) \cos ^2\left (\frac {e}{2}+\frac {f x}{2}\right )}{\sqrt {a+b \sec (e+f x)} (\sec (e+f x) c+c)}+\frac {a \sqrt {b+a \cos (e+f x)} \csc \left (\frac {e}{2}\right ) \sec \left (\frac {e}{2}\right ) (g \sec (e+f x))^{3/2} \left (\frac {F_1\left (-\frac {1}{2};-\frac {1}{2},-\frac {1}{2};\frac {1}{2};-\frac {\sec (e) \left (b+a \cos (e) \cos \left (f x+\tan ^{-1}(\tan (e))\right ) \sqrt {\tan ^2(e)+1}\right )}{a \sqrt {\tan ^2(e)+1} \left (1-\frac {b \sec (e)}{a \sqrt {\tan ^2(e)+1}}\right )},-\frac {\sec (e) \left (b+a \cos (e) \cos \left (f x+\tan ^{-1}(\tan (e))\right ) \sqrt {\tan ^2(e)+1}\right )}{a \sqrt {\tan ^2(e)+1} \left (-\frac {b \sec (e)}{a \sqrt {\tan ^2(e)+1}}-1\right )}\right ) \sin \left (f x+\tan ^{-1}(\tan (e))\right ) \tan (e)}{\sqrt {\tan ^2(e)+1} \sqrt {\frac {a \sqrt {\tan ^2(e)+1}-a \cos \left (f x+\tan ^{-1}(\tan (e))\right ) \sqrt {\tan ^2(e)+1}}{\sqrt {\tan ^2(e)+1} a+b \sec (e)}} \sqrt {\frac {\cos \left (f x+\tan ^{-1}(\tan (e))\right ) \sqrt {\tan ^2(e)+1} a+\sqrt {\tan ^2(e)+1} a}{a \sqrt {\tan ^2(e)+1}-b \sec (e)}} \sqrt {b+a \cos (e) \cos \left (f x+\tan ^{-1}(\tan (e))\right ) \sqrt {\tan ^2(e)+1}}}-\frac {\frac {\sin \left (f x+\tan ^{-1}(\tan (e))\right ) \tan (e)}{\sqrt {\tan ^2(e)+1}}+\frac {2 a \cos (e) \left (b+a \cos (e) \cos \left (f x+\tan ^{-1}(\tan (e))\right ) \sqrt {\tan ^2(e)+1}\right )}{a^2 \cos ^2(e)+a^2 \sin ^2(e)}}{\sqrt {b+a \cos (e) \cos \left (f x+\tan ^{-1}(\tan (e))\right ) \sqrt {\tan ^2(e)+1}}}\right ) \cos ^2\left (\frac {e}{2}+\frac {f x}{2}\right )}{2 (b-a) f \sqrt {a+b \sec (e+f x)} (\sec (e+f x) c+c)}+\frac {F_1\left (\frac {1}{2};\frac {1}{2},\frac {1}{2};\frac {3}{2};\frac {\csc (e) \left (b-a \sqrt {\cot ^2(e)+1} \sin (e) \sin \left (f x-\tan ^{-1}(\cot (e))\right )\right )}{a \sqrt {\cot ^2(e)+1} \left (\frac {b \csc (e)}{a \sqrt {\cot ^2(e)+1}}+1\right )},\frac {\csc (e) \left (b-a \sqrt {\cot ^2(e)+1} \sin (e) \sin \left (f x-\tan ^{-1}(\cot (e))\right )\right )}{a \sqrt {\cot ^2(e)+1} \left (\frac {b \csc (e)}{a \sqrt {\cot ^2(e)+1}}-1\right )}\right ) \sqrt {b+a \cos (e+f x)} \csc \left (\frac {e}{2}\right ) \sec \left (\frac {e}{2}\right ) (g \sec (e+f x))^{3/2} \sec \left (f x-\tan ^{-1}(\cot (e))\right ) \sqrt {\frac {a \sqrt {\cot ^2(e)+1}-a \sqrt {\cot ^2(e)+1} \sin \left (f x-\tan ^{-1}(\cot (e))\right )}{a \sqrt {\cot ^2(e)+1}-b \csc (e)}} \sqrt {\frac {\sqrt {\cot ^2(e)+1} \sin \left (f x-\tan ^{-1}(\cot (e))\right ) a+\sqrt {\cot ^2(e)+1} a}{\sqrt {\cot ^2(e)+1} a+b \csc (e)}} \sqrt {b-a \sqrt {\cot ^2(e)+1} \sin (e) \sin \left (f x-\tan ^{-1}(\cot (e))\right )} \cos ^2\left (\frac {e}{2}+\frac {f x}{2}\right )}{(b-a) f \sqrt {\cot ^2(e)+1} \sqrt {a+b \sec (e+f x)} (\sec (e+f x) c+c)} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.69, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\sqrt {b \sec \left (f x + e\right ) + a} \sqrt {g \sec \left (f x + e\right )} g \sec \left (f x + e\right )}{b c \sec \left (f x + e\right )^{2} + {\left (a + b\right )} c \sec \left (f x + e\right ) + a c}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (g \sec \left (f x + e\right )\right )^{\frac {3}{2}}}{\sqrt {b \sec \left (f x + e\right ) + a} {\left (c \sec \left (f x + e\right ) + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 2.31, size = 222, normalized size = 0.97 \[ \frac {i \left (2 a \EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, \sqrt {-\frac {a -b}{a +b}}\right )-a \EllipticE \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, \sqrt {-\frac {a -b}{a +b}}\right )-b \EllipticE \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, \sqrt {-\frac {a -b}{a +b}}\right )\right ) \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (1+\cos \left (f x +e \right )\right ) \left (a +b \right )}}\, \left (\frac {g}{\cos \left (f x +e \right )}\right )^{\frac {3}{2}} \left (\cos ^{2}\left (f x +e \right )\right ) \sqrt {\frac {b +a \cos \left (f x +e \right )}{\cos \left (f x +e \right )}}}{c f \left (b +a \cos \left (f x +e \right )\right ) \sqrt {\frac {1}{1+\cos \left (f x +e \right )}}\, \left (a -b \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (g \sec \left (f x + e\right )\right )^{\frac {3}{2}}}{\sqrt {b \sec \left (f x + e\right ) + a} {\left (c \sec \left (f x + e\right ) + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\left (\frac {g}{\cos \left (e+f\,x\right )}\right )}^{3/2}}{\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}\,\left (c+\frac {c}{\cos \left (e+f\,x\right )}\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\left (g \sec {\left (e + f x \right )}\right )^{\frac {3}{2}}}{\sqrt {a + b \sec {\left (e + f x \right )}} \sec {\left (e + f x \right )} + \sqrt {a + b \sec {\left (e + f x \right )}}}\, dx}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________